package io.cloud.tec.jdk;

import org.junit.jupiter.api.Test;

public class TryCatchResources {

    @Test
    void testTryCatchResource() {
        try {
            try {

                System.out.println("t1");
                int i = 1 / 0;
                System.out.println("t2");
            } finally {
                System.out.println("finally");
            }
        } catch (Exception e) {
            System.out.println(e);
        }
    }
}
